﻿public class LocalizationManager
    {
        public static string GetLocalizedText(string neutralText)
        {
       
            neutralText = neutralText.Replace(UILiterals.companyKey, Resources.Strings.CompanyText);
            neutralText = neutralText.Replace(UILiterals.companyPluralKey, Resources.Strings.CompanyPluralText);
            neutralText = neutralText.Replace(UILiterals.departmentKey, Resources.Strings.DepartmentText);
            neutralText = neutralText.Replace(UILiterals.departmentPluralKey, Resources.Strings.DepartmentPluralText);
            neutralText = neutralText.Replace(UILiterals.locationKey, Resources.Strings.LocationText);
            neutralText = neutralText.Replace(UILiterals.locationPluralKey, Resources.Strings.LocationPluralText);
            neutralText = neutralText.Replace(UILiterals.userKey, Resources.Strings.UserText);
            neutralText = neutralText.Replace(UILiterals.userPluralKey, Resources.Strings.UserPluralText);
            neutralText = neutralText.Replace(UILiterals.sublocationKey, Resources.Strings.SubLocationText);
            neutralText = neutralText.Replace(UILiterals.sublocationPluralKey, Resources.Strings.SubLocationPluralText);
            neutralText = neutralText.Replace(UILiterals.roleKey,Resources.Strings.RoleText);
            neutralText = neutralText.Replace(UILiterals.rolePluralKey, Resources.Strings.RolePluralText);
            return neutralText;
        }
    }
